package com.sun.boostrap.controller;

import com.sun.boostrap.feign.OrderServiceFeign;
import com.sun.entity.EnhanceProduct;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.io.IOException;
import java.util.List;

@RestController
public class OrderController {

    @Resource
    private OrderServiceFeign orderServiceFeign;

    @GetMapping("/feign/order/list")
    public List<EnhanceProduct> selectAll() throws IOException {
       return orderServiceFeign.selectOrderList();
    }
}
